package com.groupseven.happycampus.common.bo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class BicycleOrderBo {
    //    @ExcelIgnore
    @ExcelProperty(value = "订单编号")
    private Integer orderId;

    @ExcelProperty(value = "订单开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date bicycleOrderStart;

    @ExcelProperty(value = "订单结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date bicycleOrderEnd;

    @ExcelProperty(value = "租借时长")
    private Integer rentTime;

    @ExcelProperty(value = "单价")
    private double price;

    @ExcelProperty(value = "支付金额")
    private double amountMoney;
}
